package com.edu.koTA07.takingOrder;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class Settings extends Activity {	
	private static Button submitHistori ;
	private static Button cancelHistori ;
	/** Called when the activity is first created. */
    @Override
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.settings);
        
        submitHistori = (Button) findViewById(R.id.saveHistori);		
        submitHistori.setOnClickListener(new OnClickListener() {
	
			public void onClick(View v) {	
				Toast.makeText(Settings.this,
						"Please wait...", Toast.LENGTH_SHORT)
						.show();
				
	     		Intent Intent = new Intent(Settings.this,
						Main.class);
				startActivity(Intent);
				finish();
			}
		});
        
        cancelHistori = (Button) findViewById(R.id.cancelHistori);		
        cancelHistori.setOnClickListener(new OnClickListener() {
	
			public void onClick(View v) {	
				Toast.makeText(Settings.this,
						"Please wait...", Toast.LENGTH_SHORT)
						.show();
				
	     		Intent Intent = new Intent(Settings.this,
						Main.class);
				startActivity(Intent);
				finish();
			}
		});
                		        
    }  
} 